#include "infomenu.h"
#include "roundsmenu.h"
#include <QImage>

// --------------------------------------------------------------------------------
InfoMenu::InfoMenu(const QImage &splash, Menu *nextMenu)
    : Menu(nextMenu)
{
    mSplash = splash;
}

// --------------------------------------------------------------------------------
QSize InfoMenu::sizeHint() const
{
    return mSplash.size();
}

// --------------------------------------------------------------------------------
void InfoMenu::renderContent(QPainter &p)
{
    p.drawImage(0,0,mSplash);
}

// --------------------------------------------------------------------------------
void InfoMenu::accept()
{
    emit activate(new RoundsMenu());
}


